package com.obsidian.content.controller;

import com.obsidian.content.entity.TeachPlan;
import com.obsidian.content.service.ITeachPlanService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 课程计划 前端控制器
 * </p>
 *
 * @author jianghao
 * @since 2023-02-06
 */
@RestController
@RequestMapping("/teachPlan")
public class TeachPlanController {

    @Resource
    private ITeachPlanService iTeachplanService;

    @GetMapping("/selectList1")
    public List<TeachPlan> selectList1() {
        return iTeachplanService.selectList();
    }

    @GetMapping("/selectList2")
    public List<TeachPlan> selectList2() {
        return iTeachplanService.list();
    }

}
